using System;
using System.Collections.Generic;

namespace ConsoleApplication2.Models
{
    public partial class admision
    {
        public admision()
        {
            this.dischargedxes = new List<dischargedx>();
            this.OE_ORDER = new List<OE_ORDER>();
            this.requests = new List<request>();
        }

        public string ID { get; set; }
        public string CUST_ID { get; set; }
        public System.DateTime ENTRY_DATE { get; set; }
        public Nullable<System.DateTime> DISCH_DATE { get; set; }
        public Nullable<int> REF_PHY_ID { get; set; }
        public string REF_PHY { get; set; }
        public string LIC_NO { get; set; }
        public string MAIN_COMP { get; set; }
        public Nullable<int> ENTRY_TYPE { get; set; }
        public Nullable<int> ENTRY_CLAS { get; set; }
        public string INS_PART1 { get; set; }
        public string INS_PART2 { get; set; }
        public string BED_NO { get; set; }
        public Nullable<bool> WEQW { get; set; }
        public string PRICE_CODE { get; set; }
        public string ATTEND_PHY { get; set; }
        public Nullable<bool> ADMITTED { get; set; }
        public bool OUTPATIENT { get; set; }
        public int PCODE { get; set; }
        public string Visa_ { get; set; }
        public string Visa_2 { get; set; }
        public string TIME { get; set; }
        public string ROOMNUM { get; set; }
        public Nullable<int> FACILITYID { get; set; }
        public Nullable<byte> BOOKINGTYPE { get; set; }
        public Nullable<int> DURATION { get; set; }
        public Nullable<short> FACILITYTYPEID { get; set; }
        public string File_Primary_Key { get; set; }
        public Nullable<System.DateTime> VISADATE { get; set; }
        public Nullable<System.DateTime> VisaDate2 { get; set; }
        public Nullable<int> GARMONTHLYSERIAL { get; set; }
        public Nullable<short> FACILITYWARD { get; set; }
        public string DIAG_DESC { get; set; }
        public string DIAG_NOTE { get; set; }
        public Nullable<int> ContractGuar1 { get; set; }
        public Nullable<int> ContractGuar2 { get; set; }
        public string CardNumber { get; set; }
        public string CardNumber2 { get; set; }
        public Nullable<System.DateTime> StartDate { get; set; }
        public Nullable<System.DateTime> StartDate2 { get; set; }
        public Nullable<System.DateTime> EndDate { get; set; }
        public Nullable<System.DateTime> EndDate2 { get; set; }
        public Nullable<short> classId { get; set; }
        public Nullable<short> ClassGuar1 { get; set; }
        public Nullable<short> ClassGuar2 { get; set; }
        public string self_insured { get; set; }
        public Nullable<short> relation_to_insured { get; set; }
        public string DiagNo { get; set; }
        public Nullable<short> lblNum { get; set; }
        public Nullable<int> DiagnosisId { get; set; }
        public string Note { get; set; }
        public string Soap_ { get; set; }
        public Nullable<bool> Current { get; set; }
        public Nullable<int> Discharge_Type { get; set; }
        public string admstatus { get; set; }
        public string Employer { get; set; }
        public string EmployerNb { get; set; }
        public Nullable<bool> VisaFlag { get; set; }
        public Nullable<bool> VisaFlag2 { get; set; }
        public Nullable<System.DateTime> VisaEndDate { get; set; }
        public Nullable<System.DateTime> VisaEndDate2 { get; set; }
        public Nullable<int> TrackIncNumber { get; set; }
        public string TrackNumber { get; set; }
        public int cid { get; set; }
        public Nullable<short> CSTCTRID { get; set; }
        public Nullable<bool> Hasinsurance { get; set; }
        public Nullable<byte> edittracknb { get; set; }
        public string UID { get; set; }
        public string Location { get; set; }
        public string AD_status { get; set; }
        public string IntRefPhys { get; set; }
        public Nullable<bool> ADM_OutCurrent { get; set; }
        public Nullable<System.DateTime> ADM_OutDischargedAt { get; set; }
        public Nullable<int> ADM_ETSF_FROM { get; set; }
        public Nullable<int> ADM_ITSF_TO_WARD { get; set; }
        public Nullable<int> ADM_ITSF_TO_FAC { get; set; }
        public Nullable<int> ADM_EMG_TRANSPORT { get; set; }
        public Nullable<int> ADM_EMG_STATUS { get; set; }
        public Nullable<int> ADM_EMG_LOCATION { get; set; }
        public Nullable<System.DateTime> ADM_ITSF_DATE { get; set; }
        public string ADM_NUMBER { get; set; }
        public string ADM_TYPE { get; set; }
        public Nullable<int> ADM_CreatedBy { get; set; }
        public Nullable<System.DateTime> ADM_CreatedON { get; set; }
        public string ADM_MR_TO { get; set; }
        public string ADM_MR_NOTE { get; set; }
        public string ADM_MR_REQ_NB { get; set; }
        public Nullable<System.DateTime> ADM_MR_REQ_DATE { get; set; }
        public string ADM_MR_PHYS2 { get; set; }
        public virtual ADM_EMGLOC ADM_EMGLOC { get; set; }
        public virtual ADM_EMGSTATUS ADM_EMGSTATUS { get; set; }
        public virtual ADM_EMGTRANS ADM_EMGTRANS { get; set; }
        public virtual adm_ent adm_ent { get; set; }
        public virtual ADM_TSFPARTY ADM_TSFPARTY { get; set; }
        public virtual CoverageClass CoverageClass { get; set; }
        public virtual CoverageClass CoverageClass1 { get; set; }
        public virtual CoverageClass CoverageClass2 { get; set; }
        public virtual Cust Cust { get; set; }
        public virtual Cust Cust1 { get; set; }
        public virtual Cust Cust2 { get; set; }
        public virtual DischargeType DischargeType { get; set; }
        public virtual GuarantorContract GuarantorContract { get; set; }
        public virtual GuarantorContract GuarantorContract1 { get; set; }
        public virtual PriceLst PriceLst { get; set; }
        public virtual Ward Ward { get; set; }
        public virtual Name Name { get; set; }
        public virtual ICollection<dischargedx> dischargedxes { get; set; }
        public virtual ICollection<OE_ORDER> OE_ORDER { get; set; }
        public virtual ICollection<request> requests { get; set; }
    }
}
